home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1996 February / EnigmA AMIGA RUN 04 (1996)(G.R. Edizioni)(IT)[!][issue 1996-02][Skylink CD III].iso / earcd / program / gfxstf13.lha / cybergraphics.i next >
Text File  |  1995-11-25  |  3KB  |  122 lines

  1.             IFND    CYBERGRAPHICS_CYBERGRAPHICS_I
  2. CYBERGRAPHICS_CYBERGRAPHICS_I    SET    1
  3.  
  4.  
  5.             INCLUDE "exec/nodes.i"
  6.             INCLUDE "utility/tagitem.i"
  7.             INCLUDE    "graphics/displayinfo.i"
  8.  
  9. ;
  10. ; Definition of CyberModeNode (Returned in AllocModeList)
  11. ;
  12.             STRUCTURE    CyberModeNode,0
  13.             STRUCT    cmn_Node,LN_SIZE
  14.             STRUCT    cmn_ModeText,DISPLAYNAMELEN
  15.             ULONG    cmn_DisplayID
  16.             UWORD    cmn_Width
  17.             UWORD    cmn_Height
  18.             UWORD    cmn_Depth
  19.             APTR    cmn_DisplayTagList
  20.             LABEL    cmn_SIZEOF
  21.  
  22.         
  23. ;
  24. ; Parameters for GetCyberMapAttr()
  25. ;
  26.  
  27. CYBRMATTR_XMOD        EQU    $80000001    ; function returns BytesPerRow if its called with this parameter
  28. CYBRMATTR_BPPIX        EQU    $80000002    ; BytesPerPixel shall be returned
  29. CYBRMATTR_DISPADR    EQU    $80000003    ; do not use this ! private tag
  30. CYBRMATTR_PIXFMT    EQU    $80000004    ; the pixel format is returned
  31. CYBRMATTR_WIDTH        EQU    $80000005    ; returns width in pixels
  32. CYBRMATTR_HEIGHT    EQU    $80000006    ; returns height in lines
  33. CYBRMATTR_DEPTH        EQU    $80000007    ; returns bits per pixel
  34. CYBRMATTR_ISCYBERGFX    EQU    $80000008    ; returns if supplied bitmap is a cybergfx one
  35.  
  36. ;
  37. ; Parameters for GetCyberIDAttr()
  38. ;
  39.  
  40. CYBRIDATTR_PIXFMT    EQU    $80000001    ; the pixel format is returned
  41. CYBRIDATTR_WIDTH    EQU    $80000002    ; returns visible width in pixels
  42. CYBRIDATTR_HEIGHT    EQU    $80000003    ; returns visible height in lines
  43. CYBRIDATTR_DEPTH    EQU    $80000004    ; returns bits per pixel
  44. CYBRIDATTR_BPPIX    EQU    $80000005    ; BytesPerPixel shall be returned
  45.  
  46. ;
  47. ; Tags for CModeRequestTagList()
  48. ;
  49.  
  50. CYBRMREQ_TB        EQU    (TAG_USER+$40000)
  51. ;
  52. ; FilterTags
  53. ;
  54. CYBRMREQ_MinDepth    EQU    CYBRMREQ_TB+0        ; Minimum depth for displayed screenmode
  55. CYBRMREQ_MaxDepth    EQU    CYBRMREQ_TB+1        ; Maximum depth  "       "        "
  56. CYBRMREQ_MinWidth    EQU    CYBRMREQ_TB+2        ; Minumum width  "       "        "
  57. CYBRMREQ_MaxWidth    EQU    CYBRMREQ_TB+3        ; Maximum width  "       "        "
  58. CYBRMREQ_MinHeight    EQU    CYBRMREQ_TB+4        ; Minumum height "       "        "
  59. CYBRMREQ_MaxHeight    EQU    CYBRMREQ_TB+5        ; Minumum height "       "        "
  60. CYBRMREQ_CModelArray    EQU    CYBRMREQ_TB+6        ; Filters certain color models
  61.  
  62. CYBRMREQ_WinTitle    EQU    CYBRMREQ_TB+20
  63. CYBRMREQ_OKText        EQU    CYBRMREQ_TB+21
  64. CYBRMREQ_CancelText    EQU    CYBRMREQ_TB+22
  65.  
  66. CYBRMREQ_Screen        EQU    CYBRMREQ_TB+30        ; Screen you wish the Requester to opened on
  67.  
  68. ;
  69. ; Tags for BestCyberModeID()
  70. ;
  71.  
  72. CYBRBIDTG_TB        EQU    (TAG_USER+$50000)
  73. ;
  74. ; FilterTags
  75. ;
  76. CYBRBIDTG_Depth        EQU    CYBRBIDTG_TB+0
  77. CYBRBIDTG_NominalWidth    EQU    CYBRBIDTG_TB+1
  78. CYBRBIDTG_NominalHeight    EQU    CYBRBIDTG_TB+2
  79. CYBRBIDTG_MonitorID    EQU    CYBRBIDTG_TB+3
  80.  
  81.  
  82. PIXFMT_LUT8        EQU    0
  83. PIXFMT_RGB15        EQU    1
  84. PIXFMT_BGR15        EQU    2
  85. PIXFMT_RGB15PC        EQU    3
  86. PIXFMT_BGR15PC        EQU    4
  87. PIXFMT_RGB16        EQU    5
  88. PIXFMT_BGR16        EQU    6
  89. PIXFMT_RGB16PC        EQU    7
  90. PIXFMT_BGR16PC        EQU    8
  91. PIXFMT_RGB24        EQU    9
  92. PIXFMT_BGR24        EQU    10
  93. PIXFMT_ARGB32        EQU    11
  94. PIXFMT_BGRA32        EQU    12
  95. PIXFMT_RGBA32        EQU    13
  96.  
  97. PIXFMT_CNT        EQU    14
  98.  
  99. ;
  100. ; SrcRectangle formats defines for xxxPixelArray() calls
  101. ;
  102.  
  103. RECTFMT_RGB        EQU    0
  104. RECTFMT_RGBA        EQU    1
  105. RECTFMT_ARGB        EQU    2
  106. RECTFMT_LUT8        EQU    3
  107. RECTFMT_GREY8        EQU    4
  108.  
  109.  
  110. ;
  111. ; Parameters for CVideoCtrlTagList()
  112. ;
  113.  
  114. SETVC_DPMSLevel        EQU    $88002001
  115.  
  116. DPMS_ON            EQU    0    ; Full operation
  117. DPMS_STANDBY        EQU    1    ; Optional state of minimal power reduction
  118. DPMS_SUSPEND        EQU    2    ; Significant reduction of power consumption
  119. DPMS_OFF        EQU    3    ; Lowest level of power consumption
  120.  
  121.             ENDC
  122.